package com.example.springboot3;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class Role {
    @Value("${role.name}")
    private String name;
    @Value("${role.description}")
    private String descroption;
    @Value("${role.permissionIds}")
    private String permissionIds;
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescroption() {
        return descroption;
    }

    public void setDescroption(String descroption) {
        this.descroption = descroption;
    }

    public String getPermissionIds() {
        return permissionIds;
    }

    public void setPermissionIds(String permissionIds) {
        this.permissionIds = permissionIds;
    }


    @Override
    public String toString() {
        return "Role{" +
                "name='" + name + '\'' +
                ", descroption='" + descroption + '\'' +
                ", permissionIds=" + permissionIds +
                '}';
    }
}
